package com.block.sms.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.block.common.constant.AppRspCodeConstant;
import com.block.common.vo.ResponseVo;
import com.block.db.entity.AppLoginInfo;
import com.block.db.entity.SmsConfigInfo;
import com.block.db.entity.SmsTemplate;
import com.block.sms.dto.AuthResultDTO;
import com.block.sms.dto.SmsBalanceDTO;
import com.block.sms.dto.SmsResultDTO;
import com.block.sms.service.IQuickLoginService;
import com.block.sms.service.ISmsSendService;
import org.springframework.stereotype.Service;

/**
 * 做测试用
 */
@Service
public class
DefaultProcessServiceImpl implements IQuickLoginService, ISmsSendService {

    @Override
    public ResponseVo getMobile(String outId, JSONObject tokenJson, AppLoginInfo appLoginInfo) {
        AuthResultDTO resultDTO = new AuthResultDTO();
        resultDTO.setPhone("13652856523");
        return new ResponseVo(AppRspCodeConstant.SUCCESS, resultDTO);
    }

    @Override
    public SmsResultDTO sendSms(String mobile, String outId, SmsTemplate smsTemplate, SmsConfigInfo smsConfigInfo, JSONObject codeJson) {
        SmsResultDTO resultDTO = new SmsResultDTO();
        resultDTO.setCode(AppRspCodeConstant.SUCCESS);
        return resultDTO;
    }

    @Override
    public SmsBalanceDTO queryBalanceInfo(SmsConfigInfo smsConfigInfo) {
        return null;
    }
}
